using UnityEngine;
using System.Collections;

public class UImNavTabBar : UIBar
{
	
	override protected void setTabComponentIndex ()
	{
		if (canComponent != null) {
			Component component = canComponent.getActiveComponent ();
			if (canComponent.setActiveComponentIndex (activeComponentIndex)) {
				if (component != null) {
					
					UImNavViewor navigation = ComponentUtils.fetchAllChildrenComponent<UImNavViewor> (component.gameObject);
					if (navigation != null) {
						navigation.popVieworRoot ();
					}
				}
			}
		}
	}
}
